import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home/HomeIndex.vue'
import My from '../views/My/MyIndex.vue'
import DinDan from '../views/DinDan/DinDianIndex.vue'
import JinDian from '../views/JinDian/JinDianIndex.vue'
import More from '../views/JinDian/More/MoreIndex.vue'
import Login from '../views/Login/LoginIndex.vue'
import Map from '../views/Map/MapIndex.vue'
import ShiSu from '../views/ShiSu/ShiSuIndex.vue'

const routes = [
    {
        path: '/',
        name: 'Home',
        component: Home
    },
    {
        path: '/my',
        name: 'My',
        component: My
    },
    {
        path: '/dindan',
        name: 'DinDan',
        component: DinDan
    },
    {
        path: '/jindian',
        name: 'JinDian',
        component: JinDian,
    },
    {
        path: '/more',
        name: 'More',
        component: More
    },
    {
        path: '/login',
        name: 'Login',
        component: Login
    },
    {
        path: '/map',
        name: 'Map',
        component: Map
    },
    {
        path: '/shisu',
        name: 'ShiSu',
        component: ShiSu
    }
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router